package com.chou.sts.repository;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.chou.sts.domain.Student;

public class HibernateStudentRepository extends HibernateDaoSupport implements StudentRepository 
{
	@Override
	public Integer createStudent(Student student) 
	{
		return (Integer)getHibernateTemplate().save(student);
	}

	@Override
	public Student getStudentById(Integer id) 
	{
		return getHibernateTemplate().get(Student.class, id);
	}
}
